#include "fun.h"
int game_num,player_win_num,computer_win_num,draw_num;
int win_table[4] = {0,0,0,0};

int main(int argc, char const *argv[])
{
    int want_num = 0,now_num = 0;
    printf("enter the number of game you want to play\n");
    scanf("%d",&want_num);
    while(now_num != want_num){
        now_num++;
        rebegin:
        printf("The %d begin\n",now_num);
        int player_choose = choose_by_player();
        int computer_choose[3] = {0,0,0};
        choose_by_machine(computer_choose);
        int result = compare(player_choose,computer_choose[0],computer_choose[1],computer_choose[2]);
        if(result == -1){
            printf("can't judge,rebegin\n");
            goto rebegin;
        }else{
            win_table[result]++;
        }
        print_status();
    }
    return 0;
}